




//
//  ZYHomeMemangersCell.m
//  优学荟管理系统
//
//  Created by edz on 2017/12/25.
//  Copyright © 2017年 星道三好. All rights reserved.
//

#import "ZYHomeMemangersCell.h"

@implementation ZYHomeMemangersCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
     
        [self setUpSuperView];
    }
    
    
    return self;
    
    
}




- (void)setUpSuperView{
    
    self.photoIamgeButotn = [UIButton buttonWithType:(UIButtonTypeCustom)];
    [self.contentView addSubview:self.photoIamgeButotn];
    
    self.nameLabel = [UILabel new];
    self.nameLabel.font = [UIFont systemFontOfSize:16];
    self.nameLabel.textColor = ColorRGB(0, 0, 0);
    [self.contentView addSubview:self.nameLabel];
    
    
    
    [self.photoIamgeButotn mas_makeConstraints:^(MASConstraintMaker *make) {
       
        make.left.offset(kScreenWidth *45/750);
        make.top.offset(kScreenHeight *40/1334);
        
    }];
    
    
    [self.nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.photoIamgeButotn.mas_right).offset(kScreenWidth *30/750);
        make.centerY.equalTo(self.photoIamgeButotn);
    }];
    
    UILabel *lineLabel = [UILabel new];
    lineLabel.backgroundColor = ColorRGB(247, 245, 245);
    [self.contentView addSubview:lineLabel];
    [lineLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.offset(0);
        make.top.equalTo(self.photoIamgeButotn.mas_bottom).offset(kScreenHeight *40/1334);
        
    }];
    
    
    [self.contentView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.offset(0);
        make.bottom.mas_equalTo(lineLabel).offset(0);
    }];
    
    
}









@end
